package com.qwz.failover;

/**
 * @author Qiuwuzhi
 * @version V1.0
 * @Description: 把日志记录到数据库
 * @Package com.qwz.failover.DbLog
 * @date 2019/12/25 14:24
 */
public class DbLog implements LogStrategy {
    public void log(String msg) {
        //制造错误
        if (msg != null && msg.length() > 5) {
            int a = 5 / 0;
        }
        System.out.println("现在把'"+msg+"'记录到数据库");
    }
}
